package com.ant.storage.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

@Data
public class IndustryCategory {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String name;

    private Long parentId;

    private String originalCode;

    private Integer level;

    // 构造方法、getter、setter
    public IndustryCategory() {
    }

    public IndustryCategory(String name, Long parentId, String originalCode, Integer level) {
        this.name = name;
        this.parentId = parentId;
        this.originalCode = originalCode;
        this.level = level;
    }
}
